import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import { Lazyload,Skeleton,Tab,Tabs,Swipe,SwipeItem,List,Loading } from 'vant';
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import mitt from "mitt"
import 'swiper/css/swiper.css'
//长列表渲染
import VueVirtualScroller from 'vue-virtual-scroller'
import { RecycleScroller } from 'vue-virtual-scroller'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'

let app=createApp(App)
app.use(store).use(router).use(Vant).use(VueAwesomeSwiper)
.use(Lazyload,{
  lazyComponent: true,
}).use(Skeleton).
use(VueVirtualScroller).
use(RecycleScroller).
use(Tab).
use(Tabs).
use(Swipe).
use(SwipeItem).
use(List).
use(Loading).
mount('#app')
// app.config.globalProperties.$bus = new mitt()
